package component

import "gitee.com/fierce_wolf/go-fox-edge-common/commRedisStatus"

type initialConfigNotifier struct {
}

func (e *initialConfigNotifier) getConfigEntity() []map[string]interface{} {
	result := make([]map[string]interface{}, 0)

	values := commRedisStatus.Consumer.GetValues()
	for _, val := range values {
		value := val.(map[string]interface{})

		configEntity := value["configEntity"]
		if configEntity == nil {
			continue
		}

		result = append(result, value)
	}

	return result
}
